#ifndef __HZ_COMMANDER_H__
#define __HZ_COMMANDER_H__

#include "hzWindow.h"
#include "windows.h"
#include "string.h"
#include <wchar.h>

namespace hz {

	class commander : private hz::core::window {
	private:
		HWND			_hWndListBox;
		HWND			_hWndOrder;
		HWND			_hWndEdit;		
		HWND			_hWndSaveCheck;
		unsigned int	_OutputLine;
		std::wstring	_InString;
		std::wstring	_Title;

		bool Init(void);		

		bool CALLBACK CustomProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);	

	public:
		commander(const wstring& title);	

		void Show(void);
		void Hide(void);
			

		void Out(wchar_t* format, ...);
		void OutString(const wchar_t* string);
		
		bool InCheck(void);
		std::wstring In(void);

		void Save(void);	
	};
};

#endif